﻿<UserControl x:Class="Historia.Controls.ctrTexte"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Background="White">
    <DockPanel LastChildFill="True">
        <Expander Name="expChapitre" DockPanel.Dock="Top" Header="Chapitre" FontSize="18" Padding="2">
            <StackPanel Background="#FFB7B7FF">
                <Label FontSize="12" FontWeight="Bold">Résumé</Label>
                <TextBox Name="txtResumeChapitre" MinHeight="200" AcceptsReturn="True" AcceptsTab="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" FontSize="12" MaxHeight="200" TextChanged="txtResumeChapitre_TextChanged" HorizontalContentAlignment="Stretch" Margin="5,0,5,5"></TextBox>
            </StackPanel>
        </Expander>
        <Expander Name="expScene" DockPanel.Dock="Top" Header="Scène" Padding="2">
            <StackPanel Background="#FFB7B7FF">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                        <ColumnDefinition Width="30*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Label Grid.Column="0" Grid.Row="0" FontWeight="Bold">Fil:</Label>
                    <TextBlock Name="txtFils" Grid.Column="1" Grid.Row="0" VerticalAlignment="Center"></TextBlock>
                    <Label Grid.Column="0" Grid.Row="1" FontWeight="Bold">Personnages:</Label>
                    <TextBlock Name="txtPersonnages" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center"></TextBlock>
                    <Label Grid.Column="0" Grid.Row="2" FontWeight="Bold">Lieux:</Label>
                    <TextBlock Name="txtLieux" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center"></TextBlock>
                    <Label Grid.Column="0" Grid.Row="3" FontWeight="Bold">Items:</Label>
                    <TextBlock Name="txtItems" Grid.Column="1" Grid.Row="3" VerticalAlignment="Center"></TextBlock>
                    <Label Grid.Column="0" Grid.Row="4" FontWeight="Bold">Date ( aaaa/mm/jj hh:mm:ss):</Label>
                    <StackPanel Grid.Column="1" Grid.Row="4" Orientation="Horizontal">
                        <TextBox Name="txtAnnee" MinWidth="40" MaxLength="4" HorizontalContentAlignment="Center" LostFocus="txtAnnee_LostFocus"></TextBox>
                        <Label>/</Label>
                        <TextBox Name="txtMois" MinWidth="30" MaxLength="2" HorizontalContentAlignment="Center" LostFocus="txtMois_LostFocus"></TextBox>
                        <Label>/</Label>
                        <TextBox Name="txtJour" MinWidth="30" MaxLength="2" HorizontalContentAlignment="Center" LostFocus="txtJour_LostFocus"></TextBox>
                        <Label>  </Label>
                        <TextBox Name="txtHeure" MinWidth="30" MaxLength="2" HorizontalContentAlignment="Center" LostFocus="txtHeure_LostFocus"></TextBox>
                        <Label>:</Label>
                        <TextBox Name="txtMinute" MinWidth="30" MaxLength="2" HorizontalContentAlignment="Center" LostFocus="txtHeure_LostFocus"></TextBox>
                        <Label>:</Label>
                        <TextBox Name="txtSeconde" MinWidth="30" MaxLength="2" HorizontalContentAlignment="Center" LostFocus="txtHeure_LostFocus"></TextBox>

                    </StackPanel>
                </Grid>
                <Label FontSize="12" FontWeight="Bold">Résumé</Label>
                <TextBox Name="txtResumeScene" MinHeight="200" AcceptsReturn="True" AcceptsTab="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" MaxHeight="200" TextChanged="txtResumeScene_TextChanged" HorizontalContentAlignment="Stretch" Margin="5,0,5,5"></TextBox>
            </StackPanel>
        </Expander>
        <TextBox Name="txtTexte" AcceptsReturn="True" AcceptsTab="True" TextWrapping="Wrap" Margin="2,0,2,0" VerticalScrollBarVisibility="Auto" TextChanged="txtTexte_TextChanged" HorizontalContentAlignment="Stretch" FontSize="14" Padding="5,1" Background="{x:Null}"></TextBox>
    </DockPanel>
</UserControl>
